package com.hl.pojo;

@SuppressWarnings("all")
public class EmployeeToOrgId implements java.io.Serializable {

	// Fields

	private Employee employee;
	private Org org;

	// Constructors

	/** default constructor */
	public EmployeeToOrgId() {
	}

	/** full constructor */
	public EmployeeToOrgId(Employee employee, Org org) {
		this.employee = employee;
		this.org = org;
	}

	// Property accessors

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public Org getOrg() {
		return this.org;
	}

	public void setOrg(Org org) {
		this.org = org;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EmployeeToOrgId))
			return false;
		EmployeeToOrgId castOther = (EmployeeToOrgId) other;

		return ((this.getEmployee() == castOther.getEmployee()) || (this.getEmployee() != null && castOther.getEmployee() != null && this.getEmployee().equals(
				castOther.getEmployee())))
				&& ((this.getOrg() == castOther.getOrg()) || (this.getOrg() != null && castOther.getOrg() != null && this.getOrg().equals(castOther.getOrg())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getEmployee() == null ? 0 : this.getEmployee().hashCode());
		result = 37 * result + (getOrg() == null ? 0 : this.getOrg().hashCode());
		return result;
	}

}